package com.zznj.xzjc.adapter.index;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zznj.xzjc.R;
import com.zznj.xzjc.utils.StringUtils;

import java.util.List;
import java.util.Map;

/**
 * 工作和案源播放
 */
public class XspjajJsonAdapter extends BaseQuickAdapter<Map<String,String>, BaseViewHolder> {

    public XspjajJsonAdapter(int layoutResId, @Nullable List<Map<String,String>> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Map<String,String> item) {
        helper.setText(R.id.title,item.get("key"));
        helper.setText(R.id.content, "        "+StringUtils.delHtmlTags(item.get("value").replace("&nbsp;","")));
    }
}
